import request from '@/utils/request'

// 交流充电桩确认表提交接口  新增
export function subReport(data) {
    return request({
      url: '/mes/report/inspection',
      method: 'post',
      data: data
    })
}


// 出厂报告 查询接口
export function getReport(data) {
  return request({
    url: '/mes/report/inspection/list',
    method: 'get',
    data: data
  })
}
// 出厂报告 查询接口
export function getReport2(data) {
  return request({
    url: '/mes/report/inspection/list',
    method: 'post',
    data: data
  })
}
// 出厂报告 修改接口
export function updataReport(data) {
    return request({
      url: '/mes/report/inspection',
      method: 'put',
      data: data
    })
  }


// 出厂报告 详情接口
export function detailsReport(productId) {
    return request({
      url: `/mes/report/inspection/${productId}`,
      method: 'get',
    })
  }
 
// 出厂报告 删除接口
export function deleteReport(productIds) {
    return request({
      url: `/mes/report/inspection/${productIds}`,
      method: 'delete',
    })
  }